//该文件用于创建Vuex中最为核心的store
import Vue from 'vue'
import Vuex from 'vuex'
// import data from '../../public/data.json'
Vue.use(Vuex)

const getDataAbout = {
	namespaced: true, //开启命名空间
	state: {
		data: {
			"seller": {
				"name": "10311小吃店",
				"tag": "连锁",
				"address": "运城学院南风五",
				"time": "8:00-23:30",
				"state": "营业中",
				"description": "美团专送",
				"deliveryTime": 26,
				"score": 4.4,
				"serviceScore": 4.6,
				"foodScore": 4.2,
				"rankRate": 70.2,
				"minPrice": 10,
				"deliveryPrice": 4,
				"ratingCount": 24,
				"sellCount": 235,
				"bulletin": "请确保您的电话畅通，以便送餐员能及时联系上您；恶劣天气情况下送达时长可能超过60分钟，请提早安排就餐时间。仓仓的小吃店提醒大家工作辛苦更要好好吃饭，用餐期间有任何意见或建议，请联系用心经营的我们。",
				"supports": [
					{
						"type": 0,
						"description": "新客爆品专享1元特价商品"
					},
					{
						"type": 1,
						"description": "VC无限橙果汁全场8折"
					},
					{
						"type": 2,
						"description": "满28减3;满38减4;满58减6;满68减8"
					},
					{
						"type": 3,
						"description": "折扣商品0.5折起"
					},
					{
						"type": 4,
						"description": "已加入“外卖保”计划,食品安全保障"
					}
				],
				"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2F9e%2F32%2F9a%2F9e329acc0c79523b0204f6ed7ea1e45e.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656989324&t=ea536ca95f7adc6c2a6304874710a014",
				"pics": [
					"http://fuss10.elemecdn.com/8/71/c5cf5715740998d5040dda6e66abfjpeg.jpeg?imageView2/1/w/180/h/180",
					"http://fuss10.elemecdn.com/b/6c/75bd250e5ba69868f3b1178afbda3jpeg.jpeg?imageView2/1/w/180/h/180",
					"http://fuss10.elemecdn.com/f/96/3d608c5811bc2d902fc9ab9a5baa7jpeg.jpeg?imageView2/1/w/180/h/180",
					"http://fuss10.elemecdn.com/6/ad/779f8620ff49f701cd4c58f6448b6jpeg.jpeg?imageView2/1/w/180/h/180"
				]
			},
			"goods": [
				{
					"name": "热销榜单",
					"type": -1,
					"foods": [
						{
							"id": 1,
							"name": "皮蛋瘦肉粥",
							"num": 0,
							"price": 3,
							"oldPrice": "",
							"description": "咸粥",
							"sellCount": 229,
							"rating": 100,
							"info": "一碗皮蛋瘦肉粥，总是我到粥店时的不二之选。香浓软滑，饱腹暖心，皮蛋的Q弹与瘦肉的滑嫩伴着粥香溢于满口，让人喝这样的一碗粥也觉得心满意足",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-4-10",
									"score": 5,
									"rateType": 0,
									"text": "很喜欢的粥",
									"avatar": "https://img2.baidu.com/it/u=4244269751,4000533845&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500"
								},
								{
									"username": "2******3",
									"rateTime": "2022-5-3",
									"rateType": 0,
									"score": 4.5,
									"text": "特别好喝特别好喝",
									"avatar": "https://img1.baidu.com/it/u=2556899225,3514084306&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500"
								},
								{
									"username": "3******b",
									"rateTime": "2022-5-28",
									"rateType": 0,
									"score": 5,
									"text": "嗯，挺不错的，可以回购",
									"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2F85%2F03%2Faf%2F8503af9a8b0ca227a0bd9be9ddc76e84.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656942459&t=daaa8d9f61a4719d5167699a86d80d94"
								},
								{
									"username": "3******c",
									"rateTime": "2022-5-29",
									"score": 3.5,
									"rateType": 1,
									"text": "不是我喜欢的味道",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "2******3",
									"rateTime": "2022-5-30",
									"rateType": 0,
									"score": 4.5,
									"text": "推荐推荐",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "3******b",
									"rateTime": "2022-6-2",
									"rateType": 0,
									"score": 5,
									"text": "不愧是招牌",
									"avatar": "https://img2.baidu.com/it/u=4122374597,4021020939&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500"
								},
								{
									"username": "3******b",
									"rateTime": "2022-6-2",
									"rateType": 0,
									"score": 5,
									"text": "看好多人推荐就想试试，没有失望",
									"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fq_70%2Cc_zoom%2Cw_640%2Fimages%2F20191102%2F58d8ddc31dd24e13b272432bda93bd28.jpeg&refer=http%3A%2F%2F5b0988e595225.cdn.sohucs.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945498&t=97a8d58e77f422e298a5735df327faf1"
								}
							],
							"icon": "http://fuss10.elemecdn.com/c/cd/c12745ed8a5171e13b427dbc39401jpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/c/cd/c12745ed8a5171e13b427dbc39401jpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 2,
							"name": "扁豆焖面",
							"num": 0,
							"price": 14,
							"oldPrice": "",
							"description": "",
							"sellCount": 188,
							"rating": 96,
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-4-20",
									"score": 4.5,
									"rateType": 0,
									"text": "巨好吃的豆角焖面",
									"avatar": "https://img2.baidu.com/it/u=4122374597,4021020939&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500"
								},
								{
									"username": "2******3",
									"rateTime": "2022-5-15",
									"score": 4,
									"rateType": 0,
									"text": "有家的味道，好评",
									"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2F0e%2F9b%2F29%2F0e9b29545b0809e3e4cb3250f8b9229b.jpeg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656942879&t=b91eba7fb1a797cb0064b1575cf89536"
								},
								{
									"username": "3******b",
									"rateTime": "2022-5-22",
									"score": 2.5,
									"rateType": 1,
									"text": "有点油啊",
									"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2F15%2Fd5%2Fee%2F15d5eeff46f2d552536f29794e98c146.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656942879&t=8dad77264f8dc09c408b18ce0a489c0b"
								}
							],
							"info": "扁豆焖面，一种传统面食，是将细面条蒸熟后备用，将肉丝、扁豆放入油锅内炒至变色，加入适量的水，等扁豆六七分熟时，将蒸好的面条放入锅中一起翻炒，等水分蒸干后盛盘即可食用",
							"icon": "http://fuss10.elemecdn.com/c/6b/29e3d29b0db63d36f7c500bca31d8jpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/c/6b/29e3d29b0db63d36f7c500bca31d8jpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 3,
							"name": "葱花饼",
							"num": 0,
							"price": 10,
							"oldPrice": "",
							"description": "",
							"sellCount": 124,
							"rating": 85,
							"info": "葱花饼是山西省传统特色小吃，宁武城乡人民喜爱吃的主食之一，常用炒鸡蛋，烙油饼一类饭菜招待客人，可以说家家户户都会做。吃起来，层薄如红，绵软利口，金黄色美，酥香可口，不失风味",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-3-2",
									"score": 2.5,
									"rateType": 1,
									"text": "没啥味道",
									"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2Fdb%2Ff6%2Ffe%2Fdbf6feb296383e384b3572079ca6c66b.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656942459&t=02bf2ca8ea68aa3458e8a7bde7662749"
								}
							],
							"icon": "http://fuss10.elemecdn.com/f/28/a51e7b18751bcdf871648a23fd3b4jpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/f/28/a51e7b18751bcdf871648a23fd3b4jpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 4,
							"name": "牛肉馅饼",
							"num": 0,
							"price": 14,
							"oldPrice": "",
							"description": "",
							"sellCount": 114,
							"rating": 91,
							"info": "牛肉馅饼，是一道营养均衡的点心，也可作为主食。 皮薄馅厚，馅心滋润软滑、味道甜而不腻。而其中用于调馅的小麦面粉、牛肉、大葱、白菜所含的营养物质对身体有着积极的作用，是广大单身、青少年的优质食物。也用于对营养不良、健脾开胃的调理。",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-5-30",
									"rateType": 0,
									"score": 5,
									"text": "好吃推荐",
									"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2Fdf%2Fd5%2F50%2Fdfd55058140ffa0ff8ce4257d5b1e74b.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656942459&t=e64001aa8f480957a33097f4efa3d844"
								},
								{
									"username": "2******3",
									"rateTime": "2022-6-1",
									"score": 4.7,
									"rateType": 0,
									"text": "口感超好，健康卫生",
									"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2F15%2Fc0%2F2a%2F15c02a241489ea30ba9f40dc8d094837.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656942879&t=61ad4f84798547695a99033e2b33bc66"
								}
							],
							"icon": "http://fuss10.elemecdn.com/d/b9/bcab0e8ad97758e65ae5a62b2664ejpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/d/b9/bcab0e8ad97758e65ae5a62b2664ejpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 5,
							"name": "招牌猪肉白菜锅贴/10个",
							"num": 0,
							"price": 17,
							"oldPrice": "",
							"description": "",
							"sellCount": 101,
							"rating": 78,
							"info": "",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-3-23",
									"rateType": 1,
									"text": "不脆,不好吃",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "2******3",
									"rateTime": "2022-4-10",
									"rateType": 0,
									"text": "good",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "3******b",
									"rateTime": "2022-5-15",
									"rateType": 0,
									"text": "非常好吃",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://fuss10.elemecdn.com/7/72/9a580c1462ca1e4d3c07e112bc035jpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/7/72/9a580c1462ca1e4d3c07e112bc035jpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 6,
							"name": "南瓜粥",
							"num": 0,
							"price": 9,
							"oldPrice": "",
							"description": "甜粥",
							"sellCount": 91,
							"rating": 100,
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-5-22",
									"rateType": 0,
									"text": "嗯嗯不错",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "2******3",
									"rateTime": "2022-5-24",
									"rateType": 0,
									"text": "好",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "3******b",
									"rateTime": "2022-6-1",
									"rateType": 0,
									"text": "很甜很好喝",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://fuss10.elemecdn.com/8/a6/453f65f16b1391942af11511b7a90jpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/8/a6/453f65f16b1391942af11511b7a90jpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 7,
							"name": "红豆薏米美肤粥",
							"num": 0,
							"price": 12,
							"oldPrice": "",
							"description": "甜粥",
							"sellCount": 86,
							"rating": 100,
							"info": "",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-5-4",
									"rateType": 0,
									"text": "啦啦啦啦啦",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "2******3",
									"rateTime": "2022-5-28",
									"rateType": 0,
									"text": "xxxxxxxxxxx",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "3******b",
									"rateTime": "2022-6-2",
									"rateType": 0,
									"text": "xxxxxxxxxxxx",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://fuss10.elemecdn.com/d/22/260bd78ee6ac6051136c5447fe307jpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/d/22/260bd78ee6ac6051136c5447fe307jpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 8,
							"name": "八宝酱菜",
							"num": 0,
							"price": 4,
							"oldPrice": "",
							"description": "",
							"sellCount": 84,
							"rating": 100,
							"info": "",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-5-5",
									"rateType": 0,
									"text": "八宝酱菜好吃",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "2******3",
									"rateTime": "2022-5-7",
									"rateType": 0,
									"text": "喜欢",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 9,
							"name": "红枣山药糙米粥",
							"num": 0,
							"price": 10,
							"oldPrice": "",
							"description": "",
							"sellCount": 81,
							"rating": 91,
							"info": "",
							"ratings": [],
							"icon": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/9/b5/469d8854f9a3a03797933fd01398bjpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 10,
							"name": "糊塌子",
							"num": 0,
							"price": 10,
							"oldPrice": "",
							"description": "",
							"sellCount": 80,
							"rating": 93,
							"info": "",
							"ratings": [],
							"icon": "http://fuss10.elemecdn.com/0/05/097a2a59fd2a2292d08067e16380cjpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/0/05/097a2a59fd2a2292d08067e16380cjpeg.jpeg?imageView2/1/w/750/h/750"
						}
					]
				},
				{
					"name": "冰爽饮品限时特惠",
					"type": 2,
					"foods": [
						{
							"id": 11,
							"num": 0,
							"name": "VC无限橙果汁",
							"price": 8,
							"oldPrice": 36,
							"description": "VC无限橙果汁,清凉可口",
							"sellCount": 17,
							"rating": 100,
							"info": "",
							"ratings": [
								{
									"username": "2******3",
									"rateTime": "2022-5-5",
									"rateType": 0,
									"text": "哈哈哈哈",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://pmt1920c9.pic44.websiteonline.cn/upload/1.jpg",
							"image": "http://fuss10.elemecdn.com/6/72/cb844f0bb60c502c6d5c05e0bddf5jpeg.jpeg?imageView2/1/w/750/h/750"
						}
					]
				},
				{
					"name": "精选热菜",
					"type": 3,
					"foods": [
						{
							"id": 13,
							"name": "娃娃菜炖豆腐",
							"num": 0,
							"price": 12,
							"oldPrice": "",
							"description": "",
							"sellCount": 43,
							"rating": 92,
							"info": "",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-5-20",
									"rateType": 0,
									"text": "菜量还可以,味道还可以",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "2******3",
									"rateTime": "2022-5-7",
									"rateType": 1,
									"text": "不太好吃",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://fuss10.elemecdn.com/d/2d/b1eb45b305635d9dd04ddf157165fjpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/d/2d/b1eb45b305635d9dd04ddf157165fjpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 14,
							"name": "手撕包菜",
							"num": 0,
							"price": 12,
							"oldPrice": "",
							"description": "",
							"sellCount": 29,
							"rating": 100,
							"info": "",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-5-30",
									"rateType": 0,
									"text": "",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "2******3",
									"rateTime": "2022-6-2",
									"rateType": 0,
									"text": "111111",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://fuss10.elemecdn.com/9/c6/f3bc84468820121112e79583c24efjpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/9/c6/f3bc84468820121112e79583c24efjpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 15,
							"name": "香酥黄金鱼/3条",
							"price": 11,
							"num": 0,
							"oldPrice": "",
							"description": "",
							"sellCount": 15,
							"rating": 100,
							"info": "",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-5-26",
									"rateType": 0,
									"text": "",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "2******3",
									"rateTime": "2022-5-22",
									"rateType": 0,
									"text": "",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://fuss10.elemecdn.com/4/e7/8277a6a2ea0a2e97710290499fc41jpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/4/e7/8277a6a2ea0a2e97710290499fc41jpeg.jpeg?imageView2/1/w/750/h/750"
						}
					]
				},
				{
					"name": "爽口凉菜",
					"type": -1,
					"foods": [
						{
							"id": 17,
							"name": "拍黄瓜",
							"price": 9,
							"num": 0,
							"oldPrice": "",
							"description": "",
							"sellCount": 28,
							"rating": 100,
							"info": "",
							"ratings": [],
							"icon": "http://fuss10.elemecdn.com/6/54/f654985b4e185f06eb07f8fa2b2e8jpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/6/54/f654985b4e185f06eb07f8fa2b2e8jpeg.jpeg?imageView2/1/w/750/h/750"
						}
					]
				},
				{
					"name": "精选套餐",
					"type": -1,
					"foods": [
						{
							"id": 18,
							"name": "红豆薏米粥套餐",
							"price": 37,
							"num": 0,
							"oldPrice": "",
							"description": "红豆薏米粥,三鲜干蒸烧卖,拍黄瓜",
							"sellCount": 3,
							"rating": 100,
							"info": "",
							"ratings": [
								{
									"username": "2******3",
									"rateTime": "2022-5-5",
									"rateType": 0,
									"text": "哇哇哇哇哇不错",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://fuss10.elemecdn.com/f/49/27f26ed00c025b2200a9ccbb7e67ejpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/f/49/27f26ed00c025b2200a9ccbb7e67ejpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 19,
							"name": "皮蛋瘦肉粥套餐",
							"price": 31,
							"num": 0,
							"oldPrice": "",
							"description": "",
							"sellCount": 12,
							"rating": 100,
							"info": "",
							"ratings": [],
							"icon": "http://fuss10.elemecdn.com/8/96/f444a8087f0e940ef264617f9d98ajpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/8/96/f444a8087f0e940ef264617f9d98ajpeg.jpeg?imageView2/1/w/750/h/750"
						}
					]
				},
				{
					"name": "果拼果汁",
					"type": -1,
					"foods": [
						{
							"id": 20,
							"name": "蜜瓜圣女萝莉杯",
							"price": 6,
							"num": 0,
							"oldPrice": "",
							"description": "",
							"sellCount": 1,
							"rating": "",
							"info": "",
							"ratings": [],
							"icon": "http://fuss10.elemecdn.com/b/5f/b3b04c259d5ec9fa52e1856ee50dajpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/b/5f/b3b04c259d5ec9fa52e1856ee50dajpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 21,
							"name": "加多宝",
							"num": 0,
							"price": 6,
							"oldPrice": "",
							"description": "",
							"sellCount": 7,
							"rating": 100,
							"info": "",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-6-1",
									"rateType": 0,
									"text": "xxxxxxxxxxxxxxxxxxxxxxxx",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "2******3",
									"rateTime": "2022-6-1",
									"rateType": 0,
									"text": "eeeeeeeeeeeeeeee",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "3******b",
									"rateTime": 1469261964000,
									"rateType": 0,
									"text": "",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://fuss10.elemecdn.com/b/9f/5e6c99c593cf65229225c5661bcdejpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/b/9f/5e6c99c593cf65229225c5661bcdejpeg.jpeg?imageView2/1/w/750/h/750"
						}
					]
				},
				{
					"name": "小吃主食",
					"type": -1,
					"foods": [
						{
							"id": 27,
							"name": "糊塌子",
							"price": 10,
							"num": 0,
							"oldPrice": "",
							"description": "",
							"sellCount": 80,
							"rating": 93,
							"info": "",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-5-5",
									"rateType": 0,
									"text": "",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "2******3",
									"rateTime": "2022-5-24",
									"rateType": 0,
									"text": "",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "3******b",
									"rateTime": "2022-5-26",
									"rateType": 0,
									"text": "",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://fuss10.elemecdn.com/0/05/097a2a59fd2a2292d08067e16380cjpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/0/05/097a2a59fd2a2292d08067e16380cjpeg.jpeg?imageView2/1/w/750/h/750"
						}
					]
				},
				{
					"name": "特色粥品",
					"type": -1,
					"foods": [
						{
							"id": 32,
							"name": "鲜蔬菌菇粥",
							"price": 6,
							"num": 0,
							"oldPrice": "",
							"description": "咸粥",
							"sellCount": 56,
							"rating": 100,
							"info": "",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-5-3",
									"rateType": 0,
									"text": "",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								},
								{
									"username": "2******3",
									"rateTime": "2022-5-4",
									"rateType": 0,
									"text": "味道很好"
								},
								{
									"username": "3******b",
									"rateTime": "2022-5-9",
									"rateType": 1,
									"text": "有点小贵",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://fuss10.elemecdn.com/e/a3/5317c68dd618929b6ac05804e429ajpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/e/a3/5317c68dd618929b6ac05804e429ajpeg.jpeg?imageView2/1/w/750/h/750"
						},
						{
							"id": 33,
							"name": "田园蔬菜粥",
							"price": 4,
							"num": 0,
							"oldPrice": "",
							"description": "咸粥",
							"sellCount": 33,
							"rating": 100,
							"info": "",
							"ratings": [
								{
									"username": "3******c",
									"rateTime": "2022-5-24",
									"rateType": 0,
									"text": "田园蔬菜粥真好喝啊",
									"avatar": "http://static.galileo.xiaojukeji.com/static/tms/default_header.png"
								}
							],
							"icon": "http://fuss10.elemecdn.com/a/94/7371083792c19df00e546b29e344cjpeg.jpeg?imageView2/1/w/114/h/114",
							"image": "http://fuss10.elemecdn.com/a/94/7371083792c19df00e546b29e344cjpeg.jpeg?imageView2/1/w/750/h/750"
						}
					]
				}
			],
			"ratings": [
				{
					"username": "3******c",
					"rateTime": "2022-3-10",
					"deliveryTime": 30,
					"score": 5,
					"rateType": 0,
					"text": "不错,粥很好喝,我经常吃这一家,非常赞,以后也会常来吃,强烈推荐.",
					"avatar": "https://img0.baidu.com/it/u=661161858,172661768&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
					"recommend": [
						"南瓜粥",
						"皮蛋瘦肉粥",
						"扁豆焖面",
						"娃娃菜炖豆腐",
						"牛肉馅饼"
					]
				},
				{
					"username": "2******3",
					"rateTime": "2022-3-15",
					"deliveryTime": "",
					"score": 4,
					"rateType": 0,
					"text": "服务态度不错",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2Feb%2F24%2Fd5%2Feb24d54a0c4e1f174a7a4922aaa28454.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656944688&t=f617749fcd6847fbeb0fc541c57882c3",
					"recommend": [
						"扁豆焖面"
					]
				},
				{
					"username": "3******b",
					"rateTime": "2022-3-16",
					"deliveryTime": "",
					"score": 3,
					"rateType": 1,
					"text": "还行吧",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2F46%2Fb9%2F9e%2F46b99ebabd3bee7cbbcefec89a66d731.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656944688&t=aeddb49321f2f7293a46aca192375f81",
					"recommend": []
				},
				{
					"username": "1******c",
					"rateTime": "2022-3-16",
					"deliveryTime": 20,
					"score": 5,
					"rateType": 0,
					"text": "良心店铺",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2F5e%2Ff4%2Fd5%2F5ef4d5cf6643bae30b5953fc1ae9b207.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656944688&t=94e95d2fbaeed02e77eb88a991f30c71",
					"recommend": []
				},
				{
					"username": "2******d",
					"rateTime": "2022-3-20",
					"deliveryTime": 10,
					"score": 4,
					"rateType": 0,
					"text": "用料十分新鲜，给的量也很足，性价比超级高。",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2F6a%2F6c%2Ff5%2F6a6cf5bf4d8c084bce791092060bd2d7.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656944899&t=79416b066f137440d54b2203a7c9b506",
					"recommend": []
				},
				{
					"username": "9******0",
					"rateTime": "2022-3-22",
					"deliveryTime": 70,
					"score": 1,
					"rateType": 1,
					"text": "送货速度蜗牛一样",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202006%2F05%2F20200605151136_egdet.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656944899&t=d1f8a0acb6753dfc1d22b9259c805805",
					"recommend": []
				},
				{
					"username": "d******c",
					"rateTime": "2022-3-23",
					"deliveryTime": 30,
					"score": 5,
					"rateType": 0,
					"text": "很喜欢的粥店",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2Fce%2F55%2F5d%2Fce555d2dd96727b46a3fd02f647d1bc8.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656944899&t=3b65e95b900da0dafe4035436a455308",
					"recommend": []
				},
				{
					"username": "2******3",
					"rateTime": "2022-3-25",
					"deliveryTime": "",
					"score": 4,
					"rateType": 0,
					"text": "量给的还可以",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2Fd3%2Fee%2Ffd%2Fd3eefd4c3cf3f5b47bfef71a173bb989.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656944899&t=58e29eeef3e90492d244b97581503f68",
					"recommend": []
				},
				{
					"username": "3******8",
					"rateTime": "2022-3-25",
					"deliveryTime": "",
					"score": 3,
					"rateType": 1,
					"text": "菜品有待提高",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2F64%2F12%2F29%2F6412291ea30bb9f53f739525c569c4dd.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656944899&t=3c2d0478af1af5efa7909bbfd5d38bdd",
					"recommend": []
				},
				{
					"username": "a******a",
					"rateTime": "2022-3-27",
					"deliveryTime": "",
					"score": 4,
					"rateType": 0,
					"text": "孩子喜欢吃这家",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2F58%2F87%2F98%2F588798aa14446663398793d8b94f48e6.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945234&t=27fce17e45848bf2d8a08b5113758207",
					"recommend": [
						"南瓜粥"
					]
				},
				{
					"username": "3******3",
					"rateTime": "2022-3-30",
					"deliveryTime": "",
					"score": 4,
					"rateType": 0,
					"text": "粥挺好吃的",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg1.doubanio.com%2Fview%2Frichtext%2Flarge%2Fpublic%2Fp39485599.jpg&refer=http%3A%2F%2Fimg1.doubanio.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945319&t=b1d2fec78d6b462eb7a56d74e61ed065",
					"recommend": []
				},
				{
					"username": "t******b",
					"rateTime": "2022-4-2",
					"deliveryTime": "",
					"score": 3,
					"rateType": 1,
					"text": "非常好恰，香脆可口，很是下饭,如果能外卖小份的就完美辣",
					"avatar": "https://img1.baidu.com/it/u=2400172782,1466211822&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
					"recommend": []
				},
				{
					"username": "f******c",
					"rateTime": "2022-4-10",
					"deliveryTime": 15,
					"score": 5,
					"rateType": 0,
					"text": "送货速度很快",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202005%2F31%2F20200531150418_mnimi.png&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945499&t=f1db2b738149c8f5e46e05777f1b4664",
					"recommend": []
				},
				{
					"username": "k******3",
					"rateTime": "2022-4-12",
					"deliveryTime": "",
					"score": 4,
					"rateType": 0,
					"text": "很喜欢这家的餐点，味道正宗，口感很好，是我喜欢的味道，很满意，值得推荐！",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202004%2F15%2F20200415141655_ihkmq.png&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945499&t=3732001db68922d3fb3ebd56e10e3afe",
					"recommend": []
				},
				{
					"username": "u******b",
					"rateTime": "2022-4-14",
					"deliveryTime": "",
					"score": 4,
					"rateType": 0,
					"text": "下雨天给快递小哥点个赞",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fq_70%2Cc_zoom%2Cw_640%2Fimages%2F20191102%2F58d8ddc31dd24e13b272432bda93bd28.jpeg&refer=http%3A%2F%2F5b0988e595225.cdn.sohucs.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945498&t=97a8d58e77f422e298a5735df327faf1",
					"recommend": []
				},
				{
					"username": "s******c",
					"rateTime": "2022-4-16",
					"deliveryTime": "",
					"score": 4,
					"rateType": 0,
					"text": "好",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202005%2F08%2F20200508181021_pblwf.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945498&t=56838ed117f6f52dfbba1df2c5e05c60",
					"recommend": []
				},
				{
					"username": "z******3",
					"rateTime": "2022-4-23",
					"deliveryTime": "",
					"score": 5,
					"rateType": 0,
					"text": "吃了还想再吃",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2Fc2%2F09%2F33%2Fc209332342d81ee6b0cc00d3ee526d06.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945498&t=418faade43a7ec1e8184f890ecdf1a0d",
					"recommend": []
				},
				{
					"username": "n******b",
					"rateTime": "2022-4-29",
					"deliveryTime": "",
					"score": 3,
					"rateType": 1,
					"text": "发票开的不对",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202006%2F13%2F20200613170252_lvsuv.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945664&t=ece87a8614da6998d86c7abd68e44097",
					"recommend": []
				},
				{
					"username": "m******c",
					"rateTime": "2022-5-4",
					"deliveryTime": 30,
					"score": 5,
					"rateType": 0,
					"text": "好吃",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2F2021%2Fedpic_source%2F46%2F98%2F29%2F469829f3862c0d600f953a3e81392216_21.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945664&t=4f82d15ab25e0c871e6fb6fc4a826d18",
					"recommend": []
				},
				{
					"username": "l******3",
					"rateTime": "2022-5-13",
					"deliveryTime": 40,
					"score": 5,
					"rateType": 0,
					"text": "还不错吧",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2Fc6%2F49%2Fbf%2Fc649bfc39e8a427c9bfc761dcd06ee20.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945664&t=00fc438ed44d18dc0cb80ae77d0456e6",
					"recommend": []
				},
				{
					"username": "3******o",
					"rateTime": "2022-5-20",
					"deliveryTime": "",
					"score": 2,
					"rateType": 1,
					"text": "味道一般般，没那么好吃",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fexp-picture.cdn.bcebos.com%2F460fdc8333bf3bef8eefef0d3f3ea8db564a1a3a.jpg%3Fx-bce-process%3Dimage%2Fresize%2Cm_lfit%2Cw_500&refer=http%3A%2F%2Fexp-picture.cdn.bcebos.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945664&t=6a8f4abef1c09d8f2241daaee8b526a7",
					"recommend": []
				},
				{
					"username": "3******p",
					"rateTime": "2022-5-20",
					"deliveryTime": "",
					"score": 4,
					"rateType": 0,
					"text": "口感非常的脆嫩，爽滑。",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202002%2F16%2F20200216202218_ekxlk.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945664&t=0ac3cfd67756438a049642f576c83087",
					"recommend": []
				},
				{
					"username": "o******k",
					"rateTime": "2022-5-26",
					"deliveryTime": "",
					"score": 5,
					"rateType": 0,
					"text": "一如既往的好吃",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2F2021%2Fedpic_source%2F39%2F50%2F84%2F3950840b6ad41a1bf84b066710b4d42e_18.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945883&t=294ccea88a17d14e7a713d627587a74e",
					"recommend": []
				},
				{
					"username": "k******b",
					"rateTime": "2022-5-28",
					"deliveryTime": "",
					"score": 4,
					"rateType": 0,
					"text": "家里人都喜欢吃，不错不错",
					"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F202004%2F24%2F20200424142938_qidqg.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656945883&t=e7e1dcf452ba0dd2166df99e9c8f5474",
					"recommend": []
				}
			]
		}
	},
	actions: {},
	mutations: {
		getData(state, value) {
			state.data = value
		},
		addOne(state, value) {
			const { index, ind } = value
			state.data.goods[index].foods[ind].num++
		},
		subOne(state, value) {
			const { index, ind } = value
			state.data.goods[index].foods[ind].num--
		},
		deleteNum(state, value) {
			state.data.goods.forEach(element => {
				element.foods.forEach(e => {
					if (e.id == value) {
						e.num = 0
						return
					}
				});
			});
		},
		clearNum(state) {
			state.data.goods.forEach(element => {
				element.foods.forEach(e => {
					e.num = 0
				});
			});
		}
	},
}

const priceAbout = {
	namespaced: true, //开启命名空间
	state: {
		// total: 0,
		totalPrice: 0,
		cart: []
	},
	actions: {},
	mutations: {
		addCart(state, value) {
			const { index, ind, i } = value
			if (state.cart.length == 0) {
				state.cart.push(i)
			}
			else {
				let res = state.cart.findIndex((item) => {
					return item.id == i.id
				})
				if (res == -1) {
					state.cart.push(i)
				}
			}
			// state.total++
			state.totalPrice = state.totalPrice + i.price
		},
		subCart(state, value) {
			const { index, ind, i } = value
			// state.total--
			state.totalPrice = state.totalPrice - i.price

			state.cart.forEach((element, ele) => {
				if (element.num == 0) {
					state.cart.splice(ele, 1)
				}
			});
		},
		removeCart(state, value) {
			console.log(value);
			state.cart.splice(value, 1)
		},
		clearCart(state, value) {
			state.cart = []
		}
	}
}

export default new Vuex.Store({
	modules: {
		getDataAbout,
		priceAbout
	}
})